import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { AuthCommonPage } from './auth-common.page';

const routes: Routes = [
  {
    path:'',
    component:AuthCommonPage,
    children:[
      {
        path: 'signin-first',
        loadChildren: () => import('../../auth/register/signin-first/signin-first.module').then( m => m.SigninFirstPageModule)
      },
      {
        path: 'verification-code',
        loadChildren: () => import('../../auth/register/verification-code/verification-code.module').then( m => m.VerificationCodePageModule)
      },
      {
        path: 'input-password',
        loadChildren: () => import('../../auth/register/input-password/input-password.module').then( m => m.InputPasswordPageModule)
      },
      {
        path: 'fingerprint-setup',
        loadChildren: () => import('../../auth/register/fingerprint-setup/fingerprint-setup.module').then( m => m.FingerprintSetupPageModule)
      },
      {
        path: 'signin-password',
        loadChildren: () => import('../../auth/signin/signin-password/signin-password.module').then( m => m.SigninPasswordPageModule)
      },
      {
        path: 'signin-sms',
        loadChildren: () => import('../../auth/signin/signin-sms/signin-sms.module').then( m => m.SigninSmsPageModule)
      },
      {
        path: 'signin-code',
        loadChildren: () => import('../../auth/signin/signin-code/signin-code.module').then( m => m.SigninCodePageModule)
      },
      {
        path: 'signin-fingerprint-setup',
        loadChildren: () => import('../../auth/signin/fingerprint-setup/fingerprint-setup.module').then( m => m.FingerprintSetupPageModule)
      },
      {
        path: 'signin-fingerprint',
        loadChildren: () => import('../../auth/signin/signin-fingerprint/signin-fingerprint.module').then( m => m.SigninFingerprintPageModule)
      },
      {
        path: 'reset-pwd/input-mobile',
        loadChildren: () => import('../../auth/reset-password/input-mobile/input-mobile.module').then( m => m.InputMobilePageModule)
      },
      {
        path: 'reset-pwd/input-verification-code',
        loadChildren: () => import('../../auth/reset-password/input-verification-code/input-verification-code.module').then( m => m.InputVerificationCodePageModule)
      },
      {
        path: 'reset-pwd/input-password',
        loadChildren: () => import('../../auth/reset-password/input-password/input-password.module').then( m => m.InputPasswordPageModule)
      },
      {
        path: '',
        redirectTo: '/auth/signin-password',
        pathMatch: 'full'
      }
    ]
  },
  {
    path: 'agreement',
    loadChildren: () => import('../../auth/agreement/agreement.module').then( m => m.AgreementPageModule)
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class AuthCommonPageRoutingModule {}
